/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.sys.entity.user;

import com.thinkgem.jeesite.modules.hk.media.entity.HkMediaShopCategory;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户产品Entity
 * @author 罗天文
 * @version 2018-08-30
 */
public class HkUserProductCategory extends DataEntity<HkUserProductCategory> {
	
	private static final long serialVersionUID = 1L;
	private HkUserProduct product;		// 产品id 父类
	private HkMediaShopCategory category;		// 分类id
	
	public HkUserProductCategory() {
		super();
	}

	public HkUserProductCategory(String id){
		super(id);
	}

	public HkUserProductCategory(HkUserProduct product){
		this.product = product;
	}

	@Length(min=0, max=32, message="产品id长度必须介于 0 和 32 之间")
	public HkUserProduct getProduct() {
		return product;
	}

	public void setProduct(HkUserProduct product) {
		this.product = product;
	}
	
	public HkMediaShopCategory getCategory() {
		return category;
	}

	public void setCategory(HkMediaShopCategory category) {
		this.category = category;
	}
	
}